package com.woniu.zsd.platform.FeignClient;

import com.woniu.zsd.common.util.Result;
import com.woniu.zsd.platform.form.UpdateSiteScoreBySiteIdForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;

@FeignClient(name = "platform-service")
public interface StationFeignClient {

    @GetMapping("/platform/recycleBin/selectStationNameByStationId")
     Result selectStationNameByStationId(@RequestParam("stationId") Integer stationId);

    @PostMapping("/platform/recycleBin/updateSiteScoreBySiteId")
     Result updateSiteScoreBySiteId(@RequestBody UpdateSiteScoreBySiteIdForm form);

    @GetMapping("/platform/recycleBin/selectRecycleBinByLocation")
     Result selectRecycleBinByLocation(@RequestParam("longitude") BigDecimal longitude, @RequestParam("latitude") BigDecimal latitude);
    }

